﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DataManager.BLL;

namespace FILMEK.GUI
{
    public partial class frmElado : Form
    {
        FilmManager manager;
        int eladoId;
        string nev;

        public frmElado(FilmManager manager, int id,string nev)
        {
            InitializeComponent();
            this.manager = manager;
            this.eladoId = id;
            this.nev = nev;
        }

        private void frmElado_Load(object sender, EventArgs e)
        {
            lblNev.Text = nev;
            DataSet munka = manager.getAlkalmazottMitDolgozott(eladoId);
            fillDgvMunka(munka);
        }

        private void fillDgvMunka(DataSet munka)
        {
            dgvMunka.DataSource = munka.Tables[0];
        }
    }
}
